﻿<%@ Page Title="Log In" Language="C#" MasterPageFile="~/MasterPages/TwoColumn.Master"
    AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="CS424_9pts.Account.Login" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cph1" runat="Server">
    <div class="login-page">
        <div class="page-title">
            <h1>
                Welcome, Please Sign In!</h1>
        </div>
        <div class="clear">
        </div>
        <div class="wrapper">
            <div class="returning-wrapper">
                <span class="login-title">Returning Customer</span>
                <asp:Panel ID="pnlLogin" runat="server" DefaultButton="LoginForm$LoginButton" CssClass="login-block">
                    <asp:Login ID="LoginForm" RenderOuterTable="false"
                        runat="server"  RememberMeSet="True" FailureText="Failure">
                        <LayoutTemplate>
                            <table class="login-table-container">
                                <tbody>
                                    <tr class="row">
                                        <td class="item-name">
                                            <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Username:</asp:Label>
                                        </td>
                                        <td class="item-value">
                                            <asp:TextBox ID="UserName" runat="server"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                                CssClass="failureNotification" ErrorMessage="User Name is required." ToolTip="User Name is required."
                                                ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr class="row">
                                        <td class="item-name">
                                            <asp:Label runat="server" ID="lblPassword" Text="Password:" AssociatedControlID="Password" />:
                                        </td>
                                        <td class="item-value">
                                           
                                            <asp:TextBox ID="Password" runat="server" CssClass="passwordEntry" MaxLength=50 TextMode="Password"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                                CssClass="failureNotification" ErrorMessage="Password is required." ToolTip="Password is required."
                                                ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr class="row">
                                        <td class="item-value" colspan="2">
                                            <asp:CheckBox ID="RememberMe" runat="server" Text="Remember me"></asp:CheckBox>
                                        </td>
                                    </tr>
                                    <tr class="row">
                                        <td class="message-error" colspan="2">
                                            <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                        </td>
                                    </tr>
                                    <tr class="row">
                                        <td class="forgot-password" colspan="2">
                                            <asp:HyperLink ID="hlForgotPassword" runat="server" NavigateUrl="~/passwordrecovery.aspx"
                                                Text="Forgot password?"></asp:HyperLink>
                                        </td>
                                    </tr>
                                    <tr class="row">
                                        <td colspan="2">
                                            <div class="buttons">
                                                <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Log In" ValidationGroup="LoginForm"
                                                    CssClass="loginbutton" />
                                            </div>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </LayoutTemplate>
                    </asp:Login>
                </asp:Panel>
            </div>
        </div>
        <div class="clear">
        </div>
    </div>
</asp:Content>
